Movie Functions
The Movie Toolbox provides a set of functions that allow your application to create, access, and convert movie files. Movie files contain data for QuickTime movies. You can also use the Movie Toolbox to load movies into memory, in preparation for working with the movie. These functions differ based on where the movie is stored.Before your application can play a movie, you must first open the file that contains the movie. Your application can use the
OpenMovieFile
function (described on page 2-86) to open a movie file. Once you are done with the file, your application releases the file by calling theCloseMovieFile
function. Your application can create and open a new movie file by calling theCreateMovieFile
function. Your application can delete a movie file by calling theDeleteMovieFile
function.You can use the
NewMovie
function to create a new empty movie. If your application is loading a movie from an existing file, use either theNewMovieFromFile
function or theNewMovieFromDataFork
function. TheNewMovieFromFile
function works with the file reference number you obtain from theOpenMovieFile
function. TheNewMovieFromDataFork
function works with movies stored in your document file's data fork. Your application can then use the functions described in "Saving Movies," which begins on page 2-87, to load and store movies.You can use the
ConvertFileToMovieFile
function to specify an input file and convert it to a movie file. TheConvertMovieToFile
takes a specified movie (or a single track within that movie) and converts it into an output file.Once you are finished working with a movie, you should release the resources used by the movie by calling the
DisposeMovie
function.
Subtopics
- NewMovieFromFile
- NewMovieFromHandle
- NewMovie
- ConvertFileToMovieFile
- ConvertMovieToFile
- DisposeMovie
- CreateMovieFile
- OpenMovieFile
- CloseMovieFile
- DeleteMovieFile